// 文章导航样式
.post-navigation {
  width: 100%
  margin: 3rem 0 1.5rem
  border-top: 1px solid rgba(255, 255, 255, 0.1)
  padding-top: 2rem
  
  .post-navigation-inner {
    display: flex
    justify-content: space-between
    gap: 1rem
  }
  
  .post-nav-link {
    display: flex
    align-items: center
    gap: 0.75rem
    padding: 1rem
    background: rgba(255, 255, 255, 0.05)
    border-radius: 0.5rem
    color: #fff
    text-decoration: none
    transition: all 0.3s ease
    border: 1px solid rgba(255, 255, 255, 0.1)
    flex: 1 1 0
    min-width: 0 // 确保flex项可以缩小
    position: relative
    overflow: hidden
    
    &::before {
      content: ""
      position: absolute
      top: 0
      left: -100%
      width: 100%
      height: 100%
      background: linear-gradient(120deg, 
        rgba(255, 255, 255, 0), 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0))
      transition: all 0.8s ease
    }
    
    &:hover {
      background: rgba(1, 162, 190, 0.1)
      border-color: rgba(1, 162, 190, 0.3)
      transform: translateY(-3px)
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2)
      
      &::before {
        left: 100%
      }
      
      .post-nav-arrow {
        color: rgba(1, 162, 190, 0.9)
      }
    }
    
    &.disabled {
      opacity: 0.5
      pointer-events: none
      cursor: not-allowed
      background: rgba(255, 255, 255, 0.02)
    }
    
    &.prev-post {
      text-align: left
      margin-left: 10px;
    }
    
    &.next-post {
      text-align: right
      justify-content: flex-end
      margin-right: 10px;      
    }
  }
  
  .post-nav-content {
    display: flex
    flex-direction: column
    min-width: 0 // 为了文本过长时的省略
    overflow: hidden
  }
  
  .post-nav-arrow {
    flex-shrink: 0
    color: rgba(255, 255, 255, 0.7)
    transition: color 0.2s ease
  }
  
  .post-nav-label {
    font-size: 0.85rem
    color: rgba(1, 162, 190, 0.9)
    margin-bottom: 0.3rem
  }
  
  .post-nav-title {
    font-size: 1rem
    white-space: nowrap
    overflow: hidden
    text-overflow: ellipsis
    max-width: 100%
  }
}

// 响应式样式
@media (max-width: 768px) {
  .post-navigation {
    margin: 2rem 0 1rem
    
    .post-navigation-inner {
      gap: 0.75rem
    }
    
    .post-nav-link {
      padding: 0.8rem
      
      &.prev-post .post-nav-arrow {
        transform: scale(0.85)
      }
      
      &.next-post .post-nav-arrow {
        transform: scale(0.85)
      }
    }
    
    .post-nav-label {
      font-size: 0.8rem
      margin-bottom: 0.2rem
    }
    
    .post-nav-title {
      font-size: 0.9rem
    }
  }
}

// 移动端适配
@media (max-width: 576px) {
  .post-navigation {
    margin: 1.5rem 0 1rem
    
    .post-navigation-inner {
      flex-direction: column
      gap: 0.75rem
    }
    
    .post-nav-link {
      width: 100%
      padding: 0.7rem
    }
  }
}